<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>箭头函数</title>
</head>
<body>
<script>
    var ninja1 = {
        whoAmI: () => this
    };
    var ninja2 = {
        name: 'ninja2',
        whoAmI: ninja1.whoAmI
    }
    console.log(ninja2.whoAmI())
</script>
</body>
</html>
